package com.dragon.design.pattern.creational.singleton;

/**
 * @author dragon
 * @version V1.0.0-RELEASE
 * @date 2019/5/16 10:28
 */
public enum EnumInstance {

    /**
     *
     */
    INSTANCE {
        @Override
        public void printTest() {
            System.out.println("dragon print Test");
        }
    },
    ;

    public abstract void printTest();

    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static EnumInstance getInstance() {
        return INSTANCE;
    }
}
